class AddDepartmentsPhysChemHealthMathCsHistEngl < ActiveRecord::Migration
  def self.up
    Department.create(:name => 'Mathematics', :id => 1, :building => 'Skiles', :room => 117)

    Department.create(:name => 'Computing', :id => 2, :building => 'Klaus', :room => 1111)

    Department.create(:name => 'Health', :id => 3, :room => 111, :building => 'CRC')

    Department.create(:name => 'Chemistry', :id => 4, :building => 'Chem Building', :room => 111)

    Department.create(:name => 'Physics', :id => 5, :building => 'Howey', :room => 111)

    Department.create(:name => 'English', :id => 6, :building => 'Skiles', :room => 311)

    Department.create(:name => 'History', :id => 7, :room => 5, :building => 'DM Smith')
  end

  def self.down
   Department.destroy_all "id < 8"  
  end
end
